/* 
 * File:   SocketException.h
 * Author: jacek
 *
 * Created on 14 kwiecień 2011, 22:33
 */

#ifndef SOCKETEXCEPTION_H
#define	SOCKETEXCEPTION_H
#include <sstream>
#include <string>
#include <errno.h>
#include <error.h>
using namespace std;

namespace Net {
class SocketException {
	stringstream buffor;
public:
	SocketException();
	SocketException(int errnum);
	SocketException(const char* text);
	SocketException(const SocketException& orig);
	~SocketException();
	string GetMessage();
	SocketException& operator<<(SocketException& src);
	SocketException& operator<<(string src);
	SocketException& operator<<(int src);
	SocketException& operator<<(char* src);

private:

};

}
#endif	/* SOCKETEXCEPTION_H */

